home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 31
/
Aminet 31 (1999)(Schatztruhe)[!][Jun 1999].iso
/
Aminet
/
docs
/
misc
/
SCSI_PCMCIA.lha
/
MountDos100.lha
/
MountDos.doc
< prev
next >
Wrap
Text File
|
1996-01-31
|
8KB
|
191 lines
$VER: MountDos 1.0 (28.1.96) PD, (c) K.P. van Beem.
MS-Dos partition-table lister and Cross-Dos mounter for PC-HD's. Based on
information gained from the source of the Linux FDisk, by A. V. Le Blanc
(LeBlanc@mcc.ac.uk). This program is free software. You can redistribute it
and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation.
Who can use this program?
-------------------------
This program is for every one who connects PC-HD's (or -alike devices) on
his Amiga. Occasionally or permanent.
Why did I wrote this program?
-----------------------------
I wanted to connect a SCSI-HD simultaniously to my PC and my Amiga, to be
able to share the same drive-space and sharing files between the two
machines. The hardware was no problem (just connect all 24 wires 1:1 (not
the TermPower!) and ready you are). Then I had to mount the PC HD on my
amiga, using cross-dos as file-system. But the HD was partitioned in 3
partitions and one free space (intended to create an Amiga partition on
it). What should my mountlist look like? How did the PC partition the
drive? Which partition is the dos partition?
I couldn't find the information I needed. 'Til I found sources of the
MS-Dos program FDisk (actually, the Linux version on my Linux system). I
used the information to write an Amiga programma which reads and interprets
the MS-Dos partition-table on the HD. Mounting PC-HD's was never that easy!
How does it work?
-----------------
In one word: Simple!
All you need to know is the device (default: scsi.device) and the unit
(default 0) of the DOS HD. Then you type:
MountDos <device> <unit> MOUNT
(where device and unit are optional, defaults are scsi.device, unit 0) and
all PC-Filesystems on that HD will be mounted and ready for use! The
program does need the Mount command to be available (in the path) and the
T: assignment set-up correctly (both will be the case on a normal installed
Amiga).
You can also pass the options through workbench. The included icon is a
Project icon. The program and the icon don't have to be in the same
directory, as long as the program is in the current path. You can have
multiple different instances of the icon (for instance in the WBStartup
drawer) but you need only one instance of the program.
The options (tooltypes) are:
DEVICE Device to use
UNIT Unit to use
LIST List MS-Dos partition table
MOUNT Mount all dos-partitions found on the device/unit
GENERATE Generate a mountlist with all partitions found
QUIET Don't produce any output, except 'usage', when no actions
are specified.
The names used for generating and mounting are composed in the form:
MD<unit-number><partition-number>: for dos partitions and
ND<unit-number><partition-number>: for non-dos partitions.
This prevent duplicate names. The dos and non-dos partitions are
independently numbered. But if you generate a mountlist, you can edit it as
you like. Non-dos partitions are NOT automaticly mounted with the MOUNT
option. In the generated mountlist, for non-dos partition entries, the
FileSystem will be replaced by the type of the partition and the DosType
will be '?'.
The value of BlocksPerTrack is chosen as high as possible (max $0800), to
prevent high values for High and Low cylinder. Some file-systems seem to
have trouble with high values.
I'm not responsable for any damage that may occur while using this program.
The safest way is to make a LIST, GENERATE mountlist, inspect the results
and then use MOUNT if all seems fine.
What is supported and what not?
-------------------------------
All partitions (including all extended partitions) are examined. The
following file-systems are recognized (but only 1, 4 and 6 are auto-mounted
with the MOUNT option. For the others, no (AFAIK) filesystem exists for the
Amiga):
ID Name
---- -------------------------
0 Empty,
1 DOS 12-bit FAT,
2 XENIX root,
3 XENIX usr,
4 DOS 16-bit <32M,
5 Extended,
6 DOS 16-bit >=32M,
7 OS/2 HPFS -> or QNX?
8 AIX,
9 AIX bootable,
10 OPUS,
$40 Venix 80286,
$51 Novell?,
$52 Microport -> or CPM?
$63 GNU HURD -> or System V/386?
$64 Novell,
$75 PC/IX,
$80 Old MINIX -> Minix 1.4a and earlier
$81 Linux/MINIX -> Minix 1.4b and later
$82 Linux swap,
$83 Linux native,
$93 Amoeba,
$94 Amoeba BBT -> (bad block table)
$B7 BSDI fs,
$B8 BSDI swap,
$C7 Syrinx,
$DB CP/M -> or Concurrent DOS?
$E1 DOS access,
$E3 DOS R/O,
$F2 DOS secondary,
$FF BBT -> (bad track table)
The program has so far only been tested on my A500 with KS and WB 3.1, a
030/25 processor and a Multi-evolution HD controller with a 230MB Maxtor
HD, connected to a 486/DX2-66 PC with a Future Domain TMC-950
SCSI-controller with a 840MB Quantum and also connected to an external
Apple PowerCD CD-Rom (SCSI).
And on an A4000/030 with KS and WB 3.0 and an Amiga and a MS-Dos IDE in it.
But it should work on al KS and WB 2.0+ machines and all kind of HD
controllers, including IDE (!). Plug and Play!
The results of the command 'MountDos evolution.device 2 LIST' (Unit 2 is
the 840 MB Quantum in the PC) on my system, is:
Start: End: Start Number of
boot Head Cyl. Sect Head Cyl. Sect Sector Sectors MB System
1 no 1 0 1 63 199 32 32 409568 199 DOS 16-bit >=32M
2 no 0 200 1 63 484 32 409600 583680 285 Linux native
3 no 0 485 1 63 499 32 993280 30720 15 Linux swap
4 no 0 0 0 0 0 0 0 0 0 Empty
There's an empty block of about 340M at the end of the disk. I've created
an Amiga partition there. This one does NOT show-up in the MS-Dos partition
list! But with the LIST option, at least you know exactly where it can
begin safely! It's possible to create an MS-Dos partition here, generate a
mount-list entry, delete the partition and edit and use the mountlist with
other file-systems.
The results on the A4000 are:
Start: End: Start Number of
boot Head Cyl. Sect Head Cyl. Sect Sector Sectors MB System
1 no 1 0 1 3 548 28 28 61460 30 DOS 16-bit <32M
2 no 0 549 1 3 743 28 61488 21840 10 Extended
3 no 0 0 0 0 0 0 0 0 0 Empty
4 no 0 0 0 0 0 0 0 0 0 Empty
Extended partition at sector 61488:
Start: End: Start Number of
boot Head Cyl. Sect Head Cyl. Sect Sector Sectors MB System
1 no 1 549 1 3 743 28 61516 21812 10 DOS 12-bit FAT
2 no 0 0 0 0 0 0 0 0 0 Empty
3 no 0 0 0 0 0 0 0 0 0 Empty
4 no 0 0 0 0 0 0 0 0 0 Empty
Author
------
That's me. My name is K.P. van Beem. Mostly called Patrick. You can reach
me at patrick@aobh.xs4all.nl or 2:280/464.2 (Fido-net) or Boxnet (Origin).
Or by snail-mail:
K.P. van Beem
Parlevinker 5
2152 LC Nieuw-Vennep
The Netherlands
This program is Public Domain (also is the source, in E). But if you realy
like it, you're free to donate some thing to me (Giro 6047762). If you have
any questions, suggestions or bug-reports, feel free to contact me.
Thanks to Wilfred van Velsen for intensive testing of this program on his
A4000.
Have fun with your Amiga! (It's alive! (Again!))